package com.yboot.starter.tenant.core.mybatis.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yboot.starter.mybatis.core.base.query.PageQuery;
import com.yboot.starter.mybatis.core.base.service.BaseServiceImpl;
import com.yboot.starter.tenant.core.context.TenantContextHolder;
import com.yboot.starter.tenant.core.mybatis.entity.BaseTenantEntity;

public class BaseTenantServiceImpl<M extends BaseMapper<T>, T extends BaseTenantEntity, L, D, Q extends PageQuery, C> extends BaseServiceImpl<M, T, L, D, Q, C> {
    public BaseTenantServiceImpl() {
    }

    protected String getCurrentUserTenantId() {
        return TenantContextHolder.getTenantId();
    }
}